<?php
return 'badword_value';
function badword_value($author, $content, $orig_content, &$sv, $config_sv, $config_array){
	
	$matches = array();
	
	$regex = $config_array['BLACK_LIST']['BADWORD_LIST']['VALUE'];
	$regex = "/" . $regex . "/si";
	
	if ($regex != "//si") 
	{
		preg_match_all($regex, $author['name'] . $author['url'] . $content, $matches);
		$count = count($matches[0]);
		$sv += $config_sv * $count;
	}
};